#!/bin/bash

# must be started in ngrest-build/deploy/tests

timeout 10s ../bin/ngrestserver &
SERVER_TO_PID=$!

sleep 1

./test_client
RES=$?

kill $SERVER_TO_PID || true
sleep 1

exit $RES
